﻿using DAL;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class LoginManager
    {
        public static string CentreLogin;
        //登录
        public static Users Login(string loginId, string pwd)
        {
            CentreLogin = loginId;
            return LoginService.UserLogin(loginId, pwd);
        }
        //大家都在说
        public static List<MicroBlog> GetMicroBlogs()
        {
            return LoginService.GetMicroBlogs();
        }

        //获取UserInfo表，传值到用户信息页面
        public static UserInfo GetUserInfo(string login)
        {
            return LoginService.GetUserInfo(login);
        }

        //获取Users表，传值到用户信息页面
        public static Users GetUsers(string login)
        {
            return LoginService.GetUsers(login);

        }

        //保存用户信息
        public static bool SaveUserInfo(UserInfo user)
        {
            return LoginService.SaveUserInfo(user);
        }
    }
}
